package com.example.identifyvisio.model;

import lombok.Data;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;

@Data
public class Body {
    private String sysHead;
    private String flowData;
    private String nodeInfo;

    public Body(String flowData){
        try {
            sysHead = new String(Files.readAllBytes(Paths.get("C:\\Users\\ms206\\Desktop\\visio图\\会话json\\sysHead.txt")));
            nodeInfo = new String(Files.readAllBytes(Paths.get("C:\\Users\\ms206\\Desktop\\visio图\\会话json\\nodeInfo.txt")));
           this.flowData = "\"flowData\":\"" + flowData + "\"";

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
